using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SystemUIEventScript : MonoBehaviour
{

    public GameObject player;

    private ActiveVector vector;
    private ObjectTime objectTime;

    // Start is called before the first frame update
    void Start()
    {
        SystemUIEvent.initEvent(player);
        vector = new ActiveVector();
        objectTime = new ObjectTime();
    }

    // Update is called once per frame
    void Update()
    {
        objectTime.refreshUpdateObjectTime();
    }

    private void FixedUpdate()
    {
        SystemUIEvent.onFixedProc(this);

    }

    public ActivePrivateVector getVar(string name)
    {
        if (vector == null)
            vector = new ActiveVector();

        return vector.getVar(name);

    }

    public float getObjectTime()
    {
        return objectTime.getObjectTime();
    }
}
